Optimal. Leaf size=138 \[ \frac {64 a^3 (7 A+5 B) \tan (c+d x)}{105 d \sqrt {a \sec (c+d x)+a}}+\frac {16 a^2 (7 A+5 B) \tan (c+d x) \sqrt {a \sec (c+d x)+a}}{105 d}+\frac {2 a (7 A+5 B) \tan (c+d x) (a \sec (c+d x)+a)^{3/2}}{35 d}+\frac {2 B \tan (c+d x) (a \sec (c+d x)+a)^{5/2}}{7 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.18, antiderivative size = 138, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.097, Rules used = {4001, 3793, 3792} \[ \frac {64 a^3 (7 A+5 B) \tan (c+d x)}{105 d \sqrt {a \sec (c+d x)+a}}+\frac {16 a^2 (7 A+5 B) \tan (c+d x) \sqrt {a \sec (c+d x)+a}}{105 d}+\frac {2 a (7 A+5 B) \tan (c+d x) (a \sec (c+d x)+a)^{3/2}}{35 d}+\frac {2 B \tan (c+d x) (a \sec (c+d x)+a)^{5/2}}{7 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3792
Rule 3793
Rule 4001
Rubi steps
\begin {align*} \int \sec (c+d x) (a+a \sec (c+d x))^{5/2} (A+B \sec (c+d x)) \, dx &=\frac {2 B (a+a \sec (c+d x))^{5/2} \tan (c+d x)}{7 d}+\frac {1}{7} (7 A+5 B) \int \sec (c+d x) (a+a \sec (c+d x))^{5/2} \, dx\\ &=\frac {2 a (7 A+5 B) (a+a \sec (c+d x))^{3/2} \tan (c+d x)}{35 d}+\frac {2 B (a+a \sec (c+d x))^{5/2} \tan (c+d x)}{7 d}+\frac {1}{35} (8 a (7 A+5 B)) \int \sec (c+d x) (a+a \sec (c+d x))^{3/2} \, dx\\ &=\frac {16 a^2 (7 A+5 B) \sqrt {a+a \sec (c+d x)} \tan (c+d x)}{105 d}+\frac {2 a (7 A+5 B) (a+a \sec (c+d x))^{3/2} \tan (c+d x)}{35 d}+\frac {2 B (a+a \sec (c+d x))^{5/2} \tan (c+d x)}{7 d}+\frac {1}{105} \left (32 a^2 (7 A+5 B)\right ) \int \sec (c+d x) \sqrt {a+a \sec (c+d x)} \, dx\\ &=\frac {64 a^3 (7 A+5 B) \tan (c+d x)}{105 d \sqrt {a+a \sec (c+d x)}}+\frac {16 a^2 (7 A+5 B) \sqrt {a+a \sec (c+d x)} \tan (c+d x)}{105 d}+\frac {2 a (7 A+5 B) (a+a \sec (c+d x))^{3/2} \tan (c+d x)}{35 d}+\frac {2 B (a+a \sec (c+d x))^{5/2} \tan (c+d x)}{7 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.51, size = 89, normalized size = 0.64 \[ \frac {2 a^2 \sqrt {a (\sec (c+d x)+1)} \left ((301 A+230 B) \sin (c+d x)+\tan (c+d x) \left (3 (7 A+20 B) \sec (c+d x)+98 A+15 B \sec ^2(c+d x)+115 B\right )\right )}{105 d (\cos (c+d x)+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.43, size = 115, normalized size = 0.83 \[ \frac {2 \, {\left ({\left (301 \, A + 230 \, B\right )} a^{2} \cos \left (d x + c\right )^{3} + {\left (98 \, A + 115 \, B\right )} a^{2} \cos \left (d x + c\right )^{2} + 3 \, {\left (7 \, A + 20 \, B\right )} a^{2} \cos \left (d x + c\right ) + 15 \, B a^{2}\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{105 \, {\left (d \cos \left (d x + c\right )^{4} + d \cos \left (d x + c\right )^{3}\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 1.78, size = 216, normalized size = 1.57 \[ \frac {8 \, {\left ({\left (4 \, {\left (2 \, \sqrt {2} {\left (7 \, A a^{6} \mathrm {sgn}\left (\cos \left (d x + c\right )\right ) + 5 \, B a^{6} \mathrm {sgn}\left (\cos \left (d x + c\right )\right )\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 7 \, \sqrt {2} {\left (7 \, A a^{6} \mathrm {sgn}\left (\cos \left (d x + c\right )\right ) + 5 \, B a^{6} \mathrm {sgn}\left (\cos \left (d x + c\right )\right )\right )}\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 35 \, \sqrt {2} {\left (7 \, A a^{6} \mathrm {sgn}\left (\cos \left (d x + c\right )\right ) + 5 \, B a^{6} \mathrm {sgn}\left (\cos \left (d x + c\right )\right )\right )}\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 105 \, \sqrt {2} {\left (A a^{6} \mathrm {sgn}\left (\cos \left (d x + c\right )\right ) + B a^{6} \mathrm {sgn}\left (\cos \left (d x + c\right )\right )\right )}\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{105 \, {\left (a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - a\right )}^{3} \sqrt {-a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a} d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 1.33, size = 119, normalized size = 0.86 \[ -\frac {2 \left (-1+\cos \left (d x +c \right )\right ) \left (301 A \left (\cos ^{3}\left (d x +c \right )\right )+230 B \left (\cos ^{3}\left (d x +c \right )\right )+98 A \left (\cos ^{2}\left (d x +c \right )\right )+115 B \left (\cos ^{2}\left (d x +c \right )\right )+21 A \cos \left (d x +c \right )+60 B \cos \left (d x +c \right )+15 B \right ) \sqrt {\frac {a \left (1+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}\, a^{2}}{105 d \cos \left (d x +c \right )^{3} \sin \left (d x +c \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 6.35, size = 590, normalized size = 4.28 \[ \frac {\sqrt {a+\frac {a}{\frac {{\mathrm {e}}^{-c\,1{}\mathrm {i}-d\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}}{2}}}\,\left (\frac {A\,a^2\,2{}\mathrm {i}}{d}-\frac {a^2\,{\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}\,\left (301\,A+230\,B\right )\,2{}\mathrm {i}}{105\,d}\right )}{{\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}+1}-\frac {\sqrt {a+\frac {a}{\frac {{\mathrm {e}}^{-c\,1{}\mathrm {i}-d\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}}{2}}}\,\left ({\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}\,\left (\frac {A\,a^2\,2{}\mathrm {i}}{7\,d}+\frac {a^2\,\left (3\,A+4\,B\right )\,10{}\mathrm {i}}{7\,d}-\frac {a^2\,\left (5\,A+2\,B\right )\,2{}\mathrm {i}}{7\,d}-\frac {a^2\,\left (11\,A+10\,B\right )\,2{}\mathrm {i}}{7\,d}\right )+\frac {A\,a^2\,2{}\mathrm {i}}{7\,d}+\frac {a^2\,\left (3\,A+4\,B\right )\,10{}\mathrm {i}}{7\,d}-\frac {a^2\,\left (5\,A+2\,B\right )\,2{}\mathrm {i}}{7\,d}-\frac {a^2\,\left (11\,A+10\,B\right )\,2{}\mathrm {i}}{7\,d}\right )}{\left ({\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}+1\right )\,{\left ({\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}+1\right )}^3}-\frac {\sqrt {a+\frac {a}{\frac {{\mathrm {e}}^{-c\,1{}\mathrm {i}-d\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}}{2}}}\,\left ({\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}\,\left (\frac {a^2\,\left (5\,A+2\,B\right )\,2{}\mathrm {i}}{5\,d}-\frac {a^2\,\left (5\,A+9\,B\right )\,4{}\mathrm {i}}{5\,d}+\frac {a^2\,\left (7\,A-8\,B\right )\,2{}\mathrm {i}}{35\,d}\right )-\frac {A\,a^2\,2{}\mathrm {i}}{5\,d}-\frac {a^2\,\left (A+2\,B\right )\,2{}\mathrm {i}}{d}+\frac {a^2\,\left (A+B\right )\,4{}\mathrm {i}}{d}\right )}{\left ({\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}+1\right )\,{\left ({\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}+1\right )}^2}+\frac {\sqrt {a+\frac {a}{\frac {{\mathrm {e}}^{-c\,1{}\mathrm {i}-d\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}}{2}}}\,\left ({\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}\,\left (\frac {a^2\,\left (5\,A+2\,B\right )\,2{}\mathrm {i}}{3\,d}-\frac {a^2\,\left (63\,A+80\,B\right )\,2{}\mathrm {i}}{105\,d}\right )-\frac {A\,a^2\,2{}\mathrm {i}}{3\,d}+\frac {a^2\,\left (9\,A+10\,B\right )\,2{}\mathrm {i}}{3\,d}\right )}{\left ({\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}+1\right )\,\left ({\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}+1\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (a \left (\sec {\left (c + d x \right )} + 1\right )\right )^{\frac {5}{2}} \left (A + B \sec {\left (c + d x \right )}\right ) \sec {\left (c + d x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________